#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<string.h>
int ai[3005], bi[3005];
int ans[3005];
char ac[3005], bc[3005];
int main()
{
    scanf("%s", ac);
    scanf("%s", bc);
    int la = strlen(ac);
    int lb = strlen(bc);
    for (int i = 0; i < la; i++)
        ai[la - i - 1] = ac[i] - '0';
    for (int i = 0; i < lb; i++)
        bi[lb - i - 1] = bc[i] - '0';
    for (int i = 0; i < la; i++) {
        for (int j = 0; j < lb; j++) {
            ans[i + j] += ai[i] * bi[j];
        }
    }
    for (int i = 0; i < 3000; i++) {
        ans[i + 1] += ans[i] / 10;
        ans[i] %= 10;
    }
    int i = 0;
    for (i = 3001; i > 0 && ans[i] == 0; i--);
    for (; i >= 0; i--)
        printf("%d", ans[i]);
    return 0;
}